package class1;

public class Test1 {
    public static void main(String[] arug) {
        car s2 = new car();//多个类的使用
        Student s1 = new Student();
        s1.name = "张三";
        s1.math = 100;
        s1.chinese = 90;
        s1.printTotalScore();
        s1.printAverageScore();
        System.out.println(s1);//s1储存的是地址
        Student s3 = s1;//这是把s1的地址赋给s3.即这两个变量都指向一个对象
    }
}